angular.module('signin',['api'])
.controller('signinCtrl',['$scope','AsyncAPI',function($scope,AsyncAPI){
    $scope.signin=function(){
        AsyncAPI.Signin($scope.UserID,$scope.Password).then(function(result){
            var url=result.data;
            $window.location.href = url;
        },function(){
            $scope.errorMessage='UserID or Password is wrong.';
        });
    }
}]);